﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RepairApply.aspx.cs" Inherits="HQWeb.LibarySys.RepairApply" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/Site.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript">
        function openTreeSelect(vObjID, vObjName, vObjParam) {
            var vURL = '../Resources/SelectFrame.aspx?MaterialID=' + vObjID + '&MaterialName=' + vObjName + '&Param=' + vObjParam;
            window.open(vURL, "", "top=150px,left=200px,height=600px,width=800px");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <table width="98%">
                    <tr>
                        <td colspan="4" class="title">
                            <asp:Label runat="server" ID="labTitle" Text="报修申请表单"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 20%">
                            申请标题 ：
                        </td>
                        <td colspan="3">
                            <input type="text" runat="server" id="applytitel" /><span style="color: Red">*</span>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 20%">
                            店 名 ：
                        </td>
                        <td>
                            <asp:DropDownList ID="drop_branch" runat="server" Width="148px" AutoPostBack="true" OnSelectedIndexChanged="drop_branch_SelectedIndexChanged">
                            </asp:DropDownList><span style="color: Red">*</span>
                        </td>
                        <td align="right" style="width: 20%">
                            仓库名 ：
                        </td>
                        <td>
                            <asp:DropDownList ID="droplibrary" runat="server" Width="148px">
                            </asp:DropDownList><span style="color: Red">*</span>
                        </td>
                    </tr>
                    <%-- <tr>
             <td style="width: 20%" align="right">
                    申请人:
                </td>
                <td>
                <asp:Label runat="server" ID="Applicants"></asp:Label>
                </td>
                <td align="right" style="width: 20%">
                    审批人：
                </td>
                <td style="width: 30%">
                    <asp:Label runat="server" ID="Approver" ></asp:Label>
                </td>
            </tr>--%>
                    <tr>
                        <td align="right" style="width: 20%">
                            选择报修元素：
                        </td>
                        <td>
                             <asp:TextBox ID="Material_Name" runat="server"></asp:TextBox><span style="color: Red">*</span>&nbsp;&nbsp;<%--<asp:Button runat="server" ID="btn_select" OnClientClick="AddMaterial()"
                                Text="选 择" />--%><input type="button" runat="server" value="选 择" id="ipt_select"
                                    onclick="openTreeSelect('hidMaterialID','Material_Name','1,2')" />
                        </td>
                        <td style="width: 20%" align="right">
                            申请人:
                        </td>
                        <td>
                            <%-- <asp:Label runat="server" ID="Applicants"></asp:Label>--%>
                            <input runat="server" type="text" id="applicant" />
                        </td>
                    </tr>
                    <%--<tr>
                        <td align="center" colspan="4">--%>
                            <%--  <div id="Addtable" runat="server"></div>--%>
                           <%-- <table>
                                <tr>
                                    <td align="right" style="width: 15%">
                                        材料名称：
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="Material_Name" runat="server"></asp:TextBox>
                                    </td>
                                    <td align="right" style="width: 15%">
                                        报废数量：
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="Materail_Num" runat="server"></asp:TextBox>
                                    </td>--%>
                                    <%-- <td align="right" style="width: 10%">归还数量：</td>
                        <td align="left">
                            <asp:TextBox ID="Return_Num" runat="server"></asp:TextBox>
                        </td>
                                    <td align="left" style="width: 20%">
                                        <asp:RequiredFieldValidator runat="server" ID="rev_Num" ControlToValidate="Materail_Num"
                                            ForeColor="Red" ErrorMessage="请您输入数量！" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="rev_price" runat="server" ControlToValidate="Materail_Num" ForeColor="Red" ValidationExpression="^(\d)+(\.\d+)?$" ErrorMessage="请您输入正确的数量！"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                            </table>--%>
                   <%--     </td>
                    </tr>--%>
                    <tr>
                        <td align="right" style="width: 20%">
                            申请备注：
                        </td>
                        <td colspan="3">
                            <%-- <asp:Label runat="server" Width="70%"  ID="txtRemark"></asp:Label>--%>
                            <asp:TextBox runat="server"  Width="70%" TextMode="MultiLine" ID="Remark"></asp:TextBox>
                        </td>
                    </tr>
                     <tbody id="allow" runat="server" style="display: none;">
                <tr>
                    <td align="right" style="width: 20%">
                        <asp:Label runat="server" ID="lblapprover" Text="审批人："></asp:Label>
                    </td>
                    <td colspan="3">
                      <%--  <asp:Label runat="server" Width="70%" ID="Approver"></asp:Label>--%>
                      <asp:TextBox runat="server" ReadOnly="true" ID="Approver_name"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20%">
                        <asp:Label runat="server" ID="lbl_notation" Text="批 注："></asp:Label>
                    </td>
                    <td colspan="3">
                        <%--<asp:Label runat="server" Width="70%" ID="Notation"></asp:Label>--%>
                        <asp:TextBox runat="server" Width="70%" TextMode="MultiLine" ID="MyNotation" ReadOnly="true"></asp:TextBox>
                    </td>
                </tr>
            </tbody>
                    <%--  <tr>
                <td align="right" style="width: 20%">
                    申请批注：
                </td>
                <td colspan="3">
                <asp:TextBox runat="server" ReadOnly="true"  Width="70%" TextMode="MultiLine" ID="MyNotation"></asp:TextBox>  
                </td>
            </tr>--%>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td colspan="3">
                            &nbsp;&nbsp;&nbsp; &nbsp;<%--<asp:Button ID="btnSubmit" runat="server" Text="申 请" CommandName="add"
                        OnClick="btnSubmit_Click" OnClientClick="return funCheckMessage()" />--%>&nbsp; &nbsp;
                            <asp:Button ID="btnPass" runat="server" Text="申 请" OnClick="btnPass_Click" />&nbsp;
                            &nbsp;
                            <%--  <asp:Button ID="btnReject" runat="server" Text="驳 回" OnClick="btnReject_Click" Visible="false" />&nbsp; &nbsp;--%>
                            <asp:Button ID="btnReturnA" runat="server" Text="返 回" OnClick="btnReturnA_Click"
                                CausesValidation="False" />
                            <%-- <asp:Button ID="btnReturnE" runat="server" Text="返 回" Visible="false" OnClick="btnReturnE_Click" />
                    <asp:Button ID="btnReturnO" runat="server" Text="返 回" Visible="false" OnClick="btnReturnO_Click" />--%>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="display: none">
                <asp:HiddenField ID="hidType" runat="server" Value="add" />
                <asp:HiddenField ID="hidPid" runat="server" />
                <asp:HiddenField ID="hidMaterialID" runat="server" />
                <asp:HiddenField ID="hidLibraryID" runat="server" />
                <asp:HiddenField ID="hidTypeID" runat="server" />
                <asp:HiddenField ID="hidFlag" runat="server" Value="0" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
